<template>
    <view class="uni-container">
       <view class="uni-header-logo">
            <image class="uni-header-image" src="/static/img/tabbar/weihu1.png"></image>
			<text class="logo-text">设备维护</text>
        </view>
        <view class="uni-panel" v-for="(item, index) in list" :key="item.id">
           <view class="uni-panel-h" :class="item.open ? 'uni-panel-h-on' : ''" @tap="triggerCollapse(item)">
                <text class="uni-panel-text">{{item.name}}</text>
            </view>
        </view>
    </view>
</template>
<script>
	import userInfoConst from '../../../common/userInfoConst.js'
    export default {
        data() {
            return {
                list: userInfoConst.tabbar2
            }
        },
        methods: {
            triggerCollapse(e) {
               uni.navigateTo({
				   url:"../../content/maintain/"+e.src,
				   success: res => {
					   console.log(res);
				   },
				   fail: res => {
					   console.log(res);
				   },
			   });
				
            }
        }
    }
</script>

<style>
    @import '../../../common/uni-nvue.css';
</style>
